require "migration_helpers"
class CreateSnapshots < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :snapshots do |t|
      t.column :name, :string
      t.column :content_type, :string
      t.column :data, :binary
      t.column :meta_id, :integer
    end
    foreign_key(:snapshots, :meta_id, :metas)
  end

  def self.down
    drop_table :snapshots
  end
end
